package homeword.entity;

import java.util.Objects;

public class Map {
    private String year;
    private String ent;
    private String Venue;
    private String win;

    public Map(String year, String ent, String venue, String win) {
        this.year = year;
        this.ent = ent;
        Venue = venue;
        this.win = win;
    }

    public String getEnt() {
        return ent;
    }

    @Override
    public String toString() {
        return "Map{" +
                "year='" + year + '\'' +
                ", ent='" + ent + '\'' +
                ", Venue='" + Venue + '\'' +
                ", win='" + win + '\'' +
                '}';
    }

    public void setEnt(String ent) {
        this.ent = ent;
    }

    public String getYear() {
        return year;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Map map = (Map) o;
        return Objects.equals(year, map.year) && Objects.equals(Venue, map.Venue) && Objects.equals(win, map.win);
    }

    @Override
    public int hashCode() {
        return Objects.hash(year, Venue, win);
    }


    public void setYear(String year) {
        this.year = year;
    }

    public String getVenue() {
        return Venue;
    }

    public void setVenue(String venue) {
        Venue = venue;
    }

    public String getWin() {
        return win;
    }

    public void setWin(String win) {
        this.win = win;
    }
}
